﻿using System.Windows;

namespace WPFTest.AttachedProperties
{
    public class TestProperties : DependencyObject
    {

        public static string GetTest(DependencyObject obj) => (string)obj.GetValue(TestProperty);
        public static void SetTest(DependencyObject obj, string value) => obj.SetValue(TestProperty, value);
        public static readonly DependencyProperty TestProperty = DependencyProperty.RegisterAttached("Test", typeof(string), typeof(TestProperties), new PropertyMetadata(0.0, OnTestChanged));
        private static void OnTestChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
        }
    }
}
